package mbsl.books;

import mbsl.commons.lib.Element;

public class Book extends Element<Book> {
	public BookGenre getGenre() {
		return (BookGenre)super.getGenre();
	}
	public void setFormat(Format format) {
		mFormat = format;
	}
	public Format getFormat() {
		return mFormat;
	}

	public void setAuthor(Author author) {
		mAuthor = author;
	}
	public Author getAuthor() {
		return mAuthor;
	}

	public String toString() {
		return getName() + " (" + mAuthor.getSurname() + ")";
	}
	
	private Format mFormat;
	private Author mAuthor;
	
	public static final int RATING_MAX = 5;
	public static final int[] COLOUR = {255, 255, 180, 255, 255, 248};
}
